package com.haojin.spring;

import com.haojin.spring.controller.BookController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @author .29.
 * @create 2023-02-28 21:30
 */
@SpringJUnitConfig(locations = "classpath:beans.xml")
public class TxByAnnotationTest {
    @Autowired
    private BookController bookController;

    @Test
    public void testBuyBook(){
        bookController.buyBook(1,2);
    }
}
